﻿package  
{
	import flash.utils.ByteArray;
	import hunterCommonlib.data.amf.AMF3;
	
	/**
	 * ...
	 * @author ...
	 */
	public class AMFDemo
	{
		
		public function AMFDemo() 
		{
			init();
		}
		private function init():void {
			var str:String = "i love you! i love you! i love you! i love you! ";
			var byte:ByteArray = AMF3.encode(str);
			trace("编码:", byte.toString(), " 长度:", byte.length);
			var deStr:String = AMF3.decode(byte);
			trace("解码:",deStr," 长度:",deStr.length);
		}
	}
	
}